package com.ruoyi.process.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 食品留样记录对象 tb_food_retained
 *
 * @author wng
 * @date 2024-08-04
 */
public class FoodRetained extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 留样人
     */
    @Excel(name = "留样人")
    private String retainedBy;

    /**
     * 留样日期+时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "留样日期+时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date retainedTime;

    /**
     * 餐次
     */
    @Excel(name = "餐次")
    private String mealTime;

    /**
     * 留样量(g)
     */
    @Excel(name = "留样量(g)")
    private BigDecimal quantity;

    /**
     * 销样日期+时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销样日期+时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date destroyTime;

    /**
     * 留样图片
     */
    @Excel(name = "留样图片", cellType = Excel.ColumnType.IMAGE)
    private String image;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public String getRetainedBy() {
        return retainedBy;
    }

    public void setRetainedBy(String retainedBy) {
        this.retainedBy = retainedBy;
    }

    public void setRetainedTime(Date retainedTime) {
        this.retainedTime = retainedTime;
    }

    public Date getRetainedTime() {
        return retainedTime;
    }

    public void setMealTime(String mealTime) {
        this.mealTime = mealTime;
    }

    public String getMealTime() {
        return mealTime;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public Date getDestroyTime() {
        return destroyTime;
    }

    public void setDestroyTime(Date destroyTime) {
        this.destroyTime = destroyTime;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("retainedBy", getRetainedBy())
                .append("retainedTime", getRetainedTime())
                .append("mealTime", getMealTime())
                .append("quantity", getQuantity())
                .append("destroyTime", getDestroyTime())
                .append("image", getImage())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
